webr-demo
WebR
This document demonstrates the webR package for the #rstats community. Using it, in conjunction with the quarto-webr Quarto extension, users can create Quarto documents with code that runs at runtime instead of during document rendering.
Among other things, this allows researchers to create tools to explore data. Here we’ll graph the line \[y = mx + b\] By changing the slope and y-intercept, we can illustrate how the line changes.
Click the Run Code button to draw the line y = x. Then adjust the values of b and m below and click Run Code again to see how the line changes.